package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.ZhwyRentalcontract;
import org.apache.ibatis.annotations.Param;

/**
 * 租售合同Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public interface ZhwyRentalcontractMapper 
{
    /**
     * 查询租售合同
     * 
     * @param id 租售合同主键
     * @return 租售合同
     */
    public ZhwyRentalcontract selectZhwyRentalcontractById(Long id);

    /**
     * 查询租售合同列表
     * 
     * @param zhwyRentalcontract 租售合同
     * @return 租售合同集合
     */
    public List<ZhwyRentalcontract> selectZhwyRentalcontractList(ZhwyRentalcontract zhwyRentalcontract);

    /**
     * 新增租售合同
     * 
     * @param zhwyRentalcontract 租售合同
     * @return 结果
     */
    public int insertZhwyRentalcontract(ZhwyRentalcontract zhwyRentalcontract);

    /**
     * 修改租售合同
     * 
     * @param zhwyRentalcontract 租售合同
     * @return 结果
     */
    public int updateZhwyRentalcontract(ZhwyRentalcontract zhwyRentalcontract);

    /**
     * 删除租售合同
     * 
     * @param id 租售合同主键
     * @return 结果
     */
    public int deleteZhwyRentalcontractById(Long id);

    /**
     * 批量删除租售合同
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZhwyRentalcontractByIds(Long[] ids);

// 合同撤销

    public int rollbackHT(Long id);

    Long selectByReMarkAndTrade(@Param("trade") String trade,@Param("remark") String remark);
}
